﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000215 RID: 533
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueConfirmRollScRsp : IMessage<ChessRogueConfirmRollScRsp>, IMessage, IEquatable<ChessRogueConfirmRollScRsp>, IDeepCloneable<ChessRogueConfirmRollScRsp>, IBufferMessage
	{
		// Token: 0x170006F7 RID: 1783
		// (get) Token: 0x060017E2 RID: 6114 RVA: 0x00043FB3 File Offset: 0x000421B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueConfirmRollScRsp> Parser
		{
			get
			{
				return ChessRogueConfirmRollScRsp._parser;
			}
		}

		// Token: 0x170006F8 RID: 1784
		// (get) Token: 0x060017E3 RID: 6115 RVA: 0x00043FBA File Offset: 0x000421BA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueConfirmRollScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170006F9 RID: 1785
		// (get) Token: 0x060017E4 RID: 6116 RVA: 0x00043FCC File Offset: 0x000421CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueConfirmRollScRsp.Descriptor;
			}
		}

		// Token: 0x060017E5 RID: 6117 RVA: 0x00043FD3 File Offset: 0x000421D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueConfirmRollScRsp()
		{
		}

		// Token: 0x060017E6 RID: 6118 RVA: 0x00043FDC File Offset: 0x000421DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueConfirmRollScRsp(ChessRogueConfirmRollScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueDiceInfo_ = ((other.rogueDiceInfo_ != null) ? other.rogueDiceInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060017E7 RID: 6119 RVA: 0x00044028 File Offset: 0x00042228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueConfirmRollScRsp Clone()
		{
			return new ChessRogueConfirmRollScRsp(this);
		}

		// Token: 0x170006FA RID: 1786
		// (get) Token: 0x060017E8 RID: 6120 RVA: 0x00044030 File Offset: 0x00042230
		// (set) Token: 0x060017E9 RID: 6121 RVA: 0x00044038 File Offset: 0x00042238
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170006FB RID: 1787
		// (get) Token: 0x060017EA RID: 6122 RVA: 0x00044041 File Offset: 0x00042241
		// (set) Token: 0x060017EB RID: 6123 RVA: 0x00044049 File Offset: 0x00042249
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueDiceInfo RogueDiceInfo
		{
			get
			{
				return this.rogueDiceInfo_;
			}
			set
			{
				this.rogueDiceInfo_ = value;
			}
		}

		// Token: 0x060017EC RID: 6124 RVA: 0x00044052 File Offset: 0x00042252
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueConfirmRollScRsp);
		}

		// Token: 0x060017ED RID: 6125 RVA: 0x00044060 File Offset: 0x00042260
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueConfirmRollScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueDiceInfo, other.RogueDiceInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060017EE RID: 6126 RVA: 0x000440B0 File Offset: 0x000422B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueDiceInfo_ != null)
			{
				num ^= this.RogueDiceInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060017EF RID: 6127 RVA: 0x00044105 File Offset: 0x00042305
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060017F0 RID: 6128 RVA: 0x0004410D File Offset: 0x0004230D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060017F1 RID: 6129 RVA: 0x00044118 File Offset: 0x00042318
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueDiceInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.RogueDiceInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060017F2 RID: 6130 RVA: 0x00044174 File Offset: 0x00042374
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueDiceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueDiceInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060017F3 RID: 6131 RVA: 0x000441CC File Offset: 0x000423CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueConfirmRollScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueDiceInfo_ != null)
			{
				if (this.rogueDiceInfo_ == null)
				{
					this.RogueDiceInfo = new ChessRogueDiceInfo();
				}
				this.RogueDiceInfo.MergeFrom(other.RogueDiceInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060017F4 RID: 6132 RVA: 0x00044234 File Offset: 0x00042434
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060017F5 RID: 6133 RVA: 0x00044240 File Offset: 0x00042440
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.rogueDiceInfo_ == null)
					{
						this.RogueDiceInfo = new ChessRogueDiceInfo();
					}
					input.ReadMessage(this.RogueDiceInfo);
				}
			}
		}

		// Token: 0x040009E8 RID: 2536
		private static readonly MessageParser<ChessRogueConfirmRollScRsp> _parser = new MessageParser<ChessRogueConfirmRollScRsp>(() => new ChessRogueConfirmRollScRsp());

		// Token: 0x040009E9 RID: 2537
		private UnknownFieldSet _unknownFields;

		// Token: 0x040009EA RID: 2538
		public const int RetcodeFieldNumber = 11;

		// Token: 0x040009EB RID: 2539
		private uint retcode_;

		// Token: 0x040009EC RID: 2540
		public const int RogueDiceInfoFieldNumber = 1;

		// Token: 0x040009ED RID: 2541
		private ChessRogueDiceInfo rogueDiceInfo_;
	}
}
